package io.kiki.stack.netty.protocol;

import io.netty.channel.ChannelHandler;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Setter
@Getter
public class CodecImpl implements Codec {

    @Override
    public ChannelHandler encoder() {
        return new MessageToByteEncoder();
    }

    @Override
    public ChannelHandler decoder() {
        return new RpcProtocolDecoder();
    }
}
